<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href = "../css/bootstrap.min.css">
    <script type="application/javascript" src="../js/jquery-1.9.0.min.js"></script>
    <script type="application/javascript" src="../js/bootstrap.min.js"></script>
    <title>Title</title>
</head>
<body>
    <h1>Hello,jQuery!</h1>
    <script>
        // $("h1").on("mouseenter",function (){
        //     $(this).css({
        //         "color" : "red",
        //         "text-shadow" : "gray 3px 3px"
        //     });
        // });
        // $("h1").on("mouser leave",function (){
        //     $(this).css({
        //         "color" : "black",
        //         "text-shadow" : "none"
        //     });
        // });
        $("h1").hover(
            function () {
                $(this).css({
                    "color": "red",
                    "text-shadow": "gray 3px 3px",
                    "background-color" : "yellow"
                });
                $(this).width("500px");
            },
            function () {
                $(this).css({
                    "color": "black",
                    "text-shadow": "none"
                });
                $(this).width("300px");
            }
        );
    </script>
</body>
</html>